package chapter06


object ColorEnumertion extends Enumeration{
  type ColorEnumertion  =Value
  val Red =Value(0,"red")
  val Yellow = Value(2,"yellow")
  
}
/**
 * @author zeqi.cw
 */
object ScalaEnumeration extends App{
  
  
  def test(color:ColorEnumertion.Value){
      if(color==ColorEnumertion.Red)
      print("111")
  }
test(ColorEnumertion.Red)
test(ColorEnumertion.Yellow)
}
